<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Duplicate Resources</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>

<p>When translations are changed resources may become duplicated. To remove duplicate resources, click <strong>Resources</strong> then <strong>Duplicate Resources</strong>.</p>
<img src="images/duplicates.png" alt="Duplicate Resources" class="centered" />
<p>When a language is selected, the database is searched for all translations in that language which are identical and duplicates are displayed in a grid. Clicking <strong>View Duplicate Details</strong> will show the resources which contain the duplicate translations, as well as all languages present in the database.</p>
<img src="images/duplicates-details.png" alt="Duplicate Details" class="centered" />
<p>Translations for each resource can be edited or deleted from the <strong>Duplicate Resources</strong> dialog. Expanding the tree for a resource will show the applications and elements which use that resource.</p>
<p>Before deleting a resource, elements using that resource must be assigned a different resource. This can be done by merging the resource with similar resources.</p>

<h2><a name="merging">Merging Duplicate Translations</a></h2>
<p>If duplicate resources exist, translations into some languages may be available for one resource but not others. Merging translations will try to merge both translations and re-assign elements so all but one of the duplicates can be deleted.</p>
<p>The first none empty translation into each language is merged into the first resource, then elements are re-assigned.</p>
<p><strong>For example:</strong> If the following translations were shown after clicking <strong>View Details</strong>.</p>
<table class="wikitable">
  <tr>
    <th></th>
    <th>ID</th>
    <th>Used By</th>
    <th>English</th>
    <th>Spanish</th>
    <th>German</th>
    <th>Italian</th>
    <th>Slovenian</th>
    <th>Polish</th>
  </tr>
  <tr>
    <td>1</td>
    <td>52</td>
    <td>2 elements</td>
    <td>About</td>
    <td></td>
    <td>Über</td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>2</td>
    <td>253</td>
    <td>1 element</td>
    <td>
    <td>Acerca de</td>
    <td>Über</td>
    <td>
    <td>
    <td>O programie</td>
  </tr>
  <tr>
    <td>3</td>
    <td>756</td>
    <td>4 elements</td>
    <td></td>
    <td></td>
    <td></td>
    <td>Circa</td>
    <td>O programu</td>
    <td>O programie
    </td>
  </tr>
</table>

<p>After merging all of these translations, the table would show:</p>

<table class="wikitable">
  <tr>
    <th></th>
    <th>ID</th>
    <th>Used By</th>
    <th>English</th>
    <th>Spanish</th>
    <th>German</th>
    <th>Italian</th>
    <th>Slovenian</th>
    <th>Polish</th>
  </tr>
  <tr>
    <td>1</td>
    <td>52</td>
    <td>7 elements</td>
    <td>About</td>
    <td>Acerca de</td>
    <td>Über</td>
    <td>Circa</td>
    <td>O programu</td>
    <td>O programie
  </td>
  </tr>
  <tr>
    <td>2</td>
    <td>253</td>
    <td>0 element</td>
    <td></td>
    <td>Acerca de</td>
    <td>Über</td>
    <td></td>
    <td></td>
  <td>O programie</td>
  </tr>
  <tr>
    <td>3</td>
    <td>756</td>
    <td>0 elements</td>
    <td></td>
    <td></td>
    <td></td>
    <td>Circa</td>
    <td>O programu</td>
    <td>O programie</td>
  </tr>
</table>
<p>The last two resources could then be deleted. </p>

<h2><a name="conflicts">Conflict Detection</a></h2>
<p>When merging, any resources where some languages have an existing translation will always always be used instead of a blank translation. Ie: If one resource has a French translation and one doesn't, the translation will always be kept.</p>
<p>Conflicts are detected by checking whether resources can be safely merged automatically. If a conflict exists, you must choose which resource takes precedence when merging.</p>
<p><strong>For example:</strong> The following might be shown when searching for duplicate English translations for '<em>Welcome</em>'.</p>
<table class="wikitable">
  <tr>
    <th></th>
    <th>ID</th>
    <th>Used By</th>
    <th>English</th>
    <th>Danish</th>
    <th>German</th>
    <th>Italian</th>
    <th>French</th>
  </tr>
  <tr>
    <td>2</td>
    <td>253</td>
    <td>1 element</td>
    <td>Welcome</td>
    <td>Velkommen</td>
    <td></td>
    <td style="background:#ecc">Benvenuto</td>
    <td>Bienvenue</td>
  </tr>
  <tr>
    <td>3</td>
    <td>756</td>
    <td>4 elements</td>
    <td>Welcome</td>
    <td></td>
    <td>Wilkommen</td>
    <td style="background:#ecc">Mamma Mia!</td>
    <td>Bienvenue</td>
  </tr>
</table>
<p>The resources would be classed as conflicting as they have differing Italian translations. You would need to choose which to use when merging.</p>

</body>
</html>

